//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<ITechnique.h>
///	@path	~/src/graphics/
///	@date	2007/11/15
///	@desc	Effect Technique interface.

#pragma once

#include "xeres.h"

#include "graphics/IShader.h"
#include "graphics/RenderContext.h"

namespace xeres {

	class IEffect;

	/*!
		\class	ITechnique
		\brief	Effect technique interface, can be used as a shader.

		\sa IEffect, IShaderVariable
	*/
	class ITechnique : public IShader
	{
	public:

		/// \name Constructor & Destructor
		//@{

		/// \ctor
		ITechnique( void );

		/// \dtor
		virtual ~ITechnique( void );

		//@}

		DECL_IOBJECT_INTERFACE( ITechnique , IShader );

	public:

		/// \name ITechnique Interface
		//@{

		/*!
			\brief		Get technique name.
		*/
		virtual const WString& GetName( void ) = 0;

		/*!
			\brief		Get pass count.
		*/
		virtual size_t GetPassCount( void ) = 0;

		/*! 
			\brief		Get effect of technique.
		*/
		virtual RefWeak<IEffect> GetEffect( void ) = 0;

		//@}
	};

} // namespace xeres
